<section id="content">
    <h2 class="article">{$personne->getPrenom()} {$personne->getNom()}</h2>
    <div class="liste_deroulante article">
    <p class="entete_liste">{#INFORMATIONS_GENERAL#}</p>
    <table class="contenu_liste">
        <tr>
            <td class="description">{#ID#}</td>
            <td>{$personne->getId()}</td>
        </tr>
        <tr>
            <td>{#PRENOM#}</td>
            <td>{$personne->getPrenom()}</td>
        </tr>
        <tr>
            <td>{#NOM#}</td>
            <td>{$personne->getNom()}</td>
        </tr>
        <tr>
            <td>{#TELEPHONE#} </td>
            <td>{$personne->getTelephone()}</td>
        </tr>
        <tr>
            <td>{#TELEPHONE2#}</td>
            <td>{$personne->getTelephonesecond()}</td>
        </tr>
        <tr>
            <td>{#EMAIL#}</td>
            <td>{$personne->getEmail()}</td>
        </tr>
        <tr>
            <td>{#ATTEST_FISCALE#}</td>
            <td>{if $personne->getAttestationFiscale() eq 1}{#OUI#}{else}{#NON#}{/if}</td>
        </tr>
        <tr>
            <td>{#INSCR_ONLINE#}</td>
            <td>{if $personne->getInscriptionOnline() eq 1}{#OUI#}{else}{#NON#}{/if}</td>
        </tr>
        {foreach from=$adresses item=adresse}
        <tr>
            <td>{#TYPE_HABITATION#}</td>
            <td></td>
        </tr>
        <tr>
            <td>{#ADRESSE1#}</td>
            <td>{$adresse->getLigne1()}</td>
        </tr>
        <tr>
            <td>{#ADRESSE2#}</td>
            <td>{$adresse->getLigne2()}</td>
        </tr>
        <tr>
            <td>{#ADRESSE3#}</td>
            <td>{$adresse->getLigne3()}</td>
        </tr>
        <tr>
            <td>{#NPA#}</td>
            <td>{$adresse->getLocalite_npa()}</td>
        </tr>
        {/foreach}
        {foreach from=$localites item=localite}
        <tr>
            <td>{#LOCALITE#}</td>
            <td>{$localite->getNom()}</td>
        </tr>
        <tr>
            <td>{#REGION#} </td>
            <td>{$localite->getRegion_nom()}</td>
        </tr>
        <tr>
            <td>{#PAYS#}</td>
            <td>{$localite->getPays_nom()}</td>
        </tr>
        {/foreach}
        <tr>
            <td>{#REMARQUES#}</td>
            <td>{$personne->getRemarque()}</td>
        </tr>
    </table>
        <p class="entete_liste">Contrats</p>
        <table class="contenu_liste">
            <tr>
                <th>Date</th>
                <th>Animal</th>
            </tr>
            {foreach from=$contrats item=contrat}
            <tr>
                <td>{$contrat->getDate()}</td>
                <td>{$contrat->getAnimal_id()}</td>  
            </tr>  
            {/foreach}
        </table>
        <p class="entete_liste">Rapports</p>
        <table class="contenu_liste">
            <tr>
                <th>Date</th>
                <th>Titre</th>
                <th>Animal</th>
            </tr>
            {foreach from=$rapports item=rapport}
            <tr>
                <td>{$contrat->getDate()}</td>
                <td>{$contrat->getTitre()}</td>  
                <td>{$contrat->getAnimal_id()}</td>  
            </tr>  
            {/foreach}
        </table>
      	<p class="entete_liste">Historique</p>
        <table class="contenu_liste">
            <tr>
                <th>Date et heure</th>
                <th>Cause</th>
                <th>Animal</th>
            </tr>
        {foreach from=$historiques item=historique}
            <tr>
                <td>{$historique->getDateHeure()}</td>
                <td>{$historique->getCause_nom()}</td>
                <td>{$historique->getAnimal_id()}</td>  
            </tr>  
        {/foreach}
        </table>
     </div>
    <p class="actions">
        <a class="actions" href="?action=afficherModifierPersonne&id={$personne->getId()}">{#MODIFIER#}</a></input>
        <a class="actions" href="?action=afficherRechercherPersonne">{#RETOUR#}</a>
    </p>
</section>

